package com.leo.staffmanagement.bean;

import lombok.*;

import java.util.Date;

/**
 * User 用户实体类
 *
 * @author leo
 * @Date 2021/6/30 16:18
 */
@Data
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    private Integer id;
    private String username;//用户名
    private String password;//密码
    private String nickname;//昵称
    private String email;//邮箱
    private Integer role;//用户角色，0--超级管理员、1--管理员、2--普通用户
    private Integer age;//年龄
    private Integer sex;//性别，1--男、0--女
    private Date creat_time;//用户创建时间
    private Integer state;//用户状态，0--禁用、1--启用

    public User(String username, String password, String nickname, String email, Integer role, Integer age, Integer sex, Integer state) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.email = email;
        this.role = role;
        this.age = age;
        this.sex = sex;
        this.state = state;
    }
}
